/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package wf.dto;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;

/**
 *
 * @author romulogalindo
 */
@Entity
@NamedNativeQueries({
    @NamedNativeQuery(
            name = "public.ubigeo",
            query = "select co_ubigeo, no_depart, no_provin, no_distri from public.tcubigeo order by 1 asc, no_depart,no_provin,no_distri;",
            resultClass = Ubigeo.class)
})
public class Ubigeo implements Serializable {

    String co_ubigeo;
    String no_depart;
    String no_provin;
    String no_distri;

    public Ubigeo() {
    }

    @Id
    @Column(name = "co_ubigeo")
    public String getCo_ubigeo() {
        return co_ubigeo;
    }

    public void setCo_ubigeo(String co_ubigeo) {
        this.co_ubigeo = co_ubigeo;
    }

    @Column(name = "no_depart")
    public String getNo_depart() {
        return no_depart;
    }

    public void setNo_depart(String no_depart) {
        this.no_depart = no_depart;
    }

    @Column(name = "no_provin")
    public String getNo_provin() {
        return no_provin;
    }

    public void setNo_provin(String no_provin) {
        this.no_provin = no_provin;
    }

    @Column(name = "no_distri")
    public String getNo_distri() {
        return no_distri;
    }

    public void setNo_distri(String no_distri) {
        this.no_distri = no_distri;
    }

    @Override
    public String toString() {
        return "[class:Ubigeo][co_ubigeo:" + co_ubigeo + "][no_depart:" + no_depart + "][no_provin:" + no_provin + "][no_distri:" + no_distri + "]";
    }

}
